package com.shiyi.shiyiaiagent.demo.invoke;

import dev.langchain4j.community.model.dashscope.QwenChatModel;

public class LangChainAiInvoke {
  public static void main(String[] args) {
    QwenChatModel qwenChatModel = QwenChatModel.builder().apiKey("sk-ad351d62233a42d7999b6516c87c542d")
      .modelName("qwen-max")
      .build();
    String answer = qwenChatModel.chat("你好，我是十一");
    System.out.println(answer);
  }
}
